﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RiaToDalLinq.Attributes
{
    /// <summary>
    /// Maps a RIA query to a DAL method name
    /// </summary>
    [System.AttributeUsage(System.AttributeTargets.Interface | AttributeTargets.Method)]
    public class MethodMap : Attribute
    {
        private string _methodName = string.Empty;

        public MethodMap()
        {
            _methodName = string.Empty;
        }

        public MethodMap(string methodName)
        {
            _methodName = methodName;
        }

        public string MethodName
        {
            get
            {
                return _methodName;
            }
        }
    }
}
